package com.service;

import com.common.paging.PagingData;
import com.dto.in.AddRecordDto;
import com.entity.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2018/10/20.
 */
public interface AdvicesService {
    //投诉建议
    int advice(String userId, String phone, String title, String content);

    //插入评价
    int addEvaluation(Integer recordId, Integer stdUserId, Integer stdId, Integer teaUserId, Integer evaluationNum);

    //查询投诉建议
    PagingData findAdvicesList(Integer page, Integer length);

    //删除投诉建议
    int setAdvices(Integer id);

    //查询待使用
    List<Record> findReadyStatus(String stdUserId, String teaUserId, String teaId, String type, Integer limit);

    int updateRecordStatus(Integer id);

    int createRecord(AddRecordDto addRecordDto);

    int createRecordOrder(Integer recordId, Integer fewHours, BigDecimal fewHoursPrice);

    int findRecordOrderSeveral(Integer id, Integer recordId);

    List<RecordOrderInfo> findRecordOrder(Integer recordId);

    int findAppliedCount(Integer stdUserId, Integer stdId);

    int cancelOrder(Integer id);

    Record findRecordById(Integer id);

    int updatePayStatus(Integer id, String nonceStr);

    List<Price> findPrice(Integer userId);

    int updataSubjectPrice(Integer userId, Integer id, List<SubjectDataInfo> subjectData);

    int addMoneyRequest(String userId, String realName, BigDecimal bigDecimal, String cardId,String cPhone,String cType);

    int updateMoneyRequestStatus(Integer userId, String realName, BigDecimal money, String bankCardId, String uuid);

    List<bill> findBill(Integer userId, String type);

    int updateOrderStatus(String id, String operation);

    int addRefund(Integer recordId);

    int updataPayMessage(String transaction_id, String out_trade_no, String openid, String payTime);
}
